﻿using System.Runtime.Serialization;

namespace Sharp.Infrastructure.Search
{
    /// <summary>
    /// 比较优化
    /// </summary>
    [DataContract]
    public class ComparisonOptimize
    {
        public ComparisonOptimize() { }
        public ComparisonOptimize(string field, ComparisonType oldComparisonType, ComparisonType optimizeComparisonType)
        {
            this.Field = field;
            this.OldComparisonType = oldComparisonType;
            this.OptimizeComparisonType = optimizeComparisonType;
        }

        /// <summary>
        /// 字段
        /// </summary>
        [DataMember]
        public string Field { get; set; }

        /// <summary>
        /// 老的查询方式
        /// </summary>
        [DataMember]
        public ComparisonType OldComparisonType { get; set; }
        /// <summary>
        /// 优化后的查询方式
        /// </summary>
        [DataMember]
        public ComparisonType OptimizeComparisonType { get; set; }
    }
}